package annotation03;

@MyAnnotation(value = "老李")
public class Person {
    @MyAnnotation("老李")//简化写法
    private int age;

    @MyAnnotation02(value = 12, name = "老张")
    public int getAge() {
        return age;
    }

    @MyAnnotation02(12)//仅限于给单个value属性赋值时使用,当要给多个属性赋值时,必须按照上边的格式 @MyAnnotation02(value = 12, name = "老张")
    public void setAge(int age) {
        this.age = age;
    }
}
